home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: in2.uu.net!docws001!ottnews!usenet
- From: 75323.455@compuserve.com (Bruce Coghill)
- Subject: routine for yesterday's date
- X-Nntp-Posting-Host: 159.249.6.78
- Message-ID: <315c4d0f.19874776@ottnews.shl.com>
- Sender: usenet@ottnews.shl.com (News Administrator)
- Reply-To: 75323.455@compuserve.com
- Organization: SHL Systemhouse Inc. (Ottawa)
- X-Newsreader: Forte Agent .99d/16.182
- Date: Fri, 29 Mar 1996 20:51:41 GMT
-
- Greetings,
-
- In many languages you can specify (reference) a relative date. To
- find out yesterday's address, In Sybase, for example it is something
- like dayadd(-1). In dBase you just say "yesterday" in the assignment
- statement. In my C manual the time.h and time functions are described
- and how I can pull off each element in the structure (like year,
- month, day, day-of-the-year), but it isn't clear to me how to subtract
- a day. In its 19960329 (format yyymmdd), it is easy. But what about
- 19960401? I do have a function that converts a date to julian, but
- not the other way.
-
- Does anyone know of a library function that will give my yesterday's
- date automatically? Has anyone written such a routine? Sincerely,
-
- Bruce Coghill
- writing at 2:48 PM,
- on Friday, March 29, 1996
-
- Bruce... :=}
-
- ** ++ -> The thoughts expressed above are my own. <- ++ **
- ** ++ -> An open mind is one, that can grow. <- ++ **
-